package overall.message.room
{
	import flash.utils.ByteArray;
	
	import xnet.Message.ISokcetMessage;
	import xnet.Message.MessageBase;

	public class RoomConfigMsg extends MessageBase
	{

		public function RoomConfigMsg()
		{
			super();
		}
		public var token:String
		public var success:Boolean;
		public var result:String;
		public var roomName:String;
		public var playerNum:int;
		public var myselfId:int;
		override public function decodeSocketData(byteArray:ByteArray):ISokcetMessage
		{
			type=byteArray.readByte();
			token =byteArray.readUTF();
			success=byteArray.readBoolean();
			result=byteArray.readUTF();
			roomName=byteArray.readUTF();
			playerNum=byteArray.readInt();
			myselfId=byteArray.readInt();
			return this;
		}
	}
}